package com.hellobike.haxing.modules.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 月度达成奖励明细设置管理
 * @Author: haxing-boot
 * @Date:   2020-03-11
 * @Version: V1.0
 */
@Data
@TableName("t_month_reward_detail")
public class MonthRewardDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
	private Long id ;

	/**活动id*/
	@Excel(name = "活动id", width = 15)
	private Long monthRewardId ;

	/**奖项等级*/
	@Excel(name = "奖项等级", width = 15)
	private Integer level;

	/**销售额*/
	@Excel(name = "销售额", width = 15)
	private BigDecimal amount ;

	/**奖励金额*/
	@Excel(name = "奖励金额", width = 15)
	private BigDecimal rewardAmount ;

	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime ;

	/**修改时间*/
	@Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updateTime ;

	/**0不删除1删除*/
	@Excel(name = "0不删除1删除", width = 15)
	@TableLogic
	private Integer deleted ;

	/**创建人*/
	@Excel(name = "创建人", width = 15)
	private Integer createBy ;

	/**创建人*/
	@Excel(name = "创建人", width = 15)
	private Integer updateBy ;
}
